package com.example.bes.springmvc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Properties;

@RequestMapping(value = "/properties")
@RestController
public class GetPropertiesController {

    @GetMapping(value = "/all")
    public String getAllProperties() {
        Properties properties = System.getProperties();
        String mykey = properties.getProperty("mykey");
        return mykey;
    }
}
